<template>
  <div id="app">
    <MyHeader title="子鹏大帅比"></MyHeader>
    <div class="main">
      <component :is="cmpName"></component>
    </div>
    <MyTabBar :tabbarArr="tabList"></MyTabBar>
  </div>
</template>

<script>
import MyHeader from "./components/MyHeader/MyHeader";
import MyTabBar from "./components/MyTabBar/MyTabBar";
import MyTable from "./components/MyTable/MyTable";
import MyGoodsList from "./views/MyGoodsList/MyGoodsList";
import MyGoodsSearch from "./views/MyGoodsSearch/MyGoodsSearch.vue";
import MyUserInfo from "./views/MyUserInfo/MyUserInfo";
export default {
  data() {
    return {
      cmpName: "MyGoodsList",
      tabList: [
        {
          iconClass: "icon-shangpinliebiao",
          text: "商品列表",
          componentName: "GoodsList",
        },
        {
          iconClass: "icon-sousuo",
          text: "商品搜索",
          componentName: "GoodsSearch",
        },
        {
          iconClass: "icon-user",
          text: "我的信息",
          componentName: "UserInfo",
        },
      ],
    };
  },
  components: {
    MyHeader,
    MyTabBar,
    MyTable,
    MyGoodsList,
    MyGoodsSearch,
    MyUserInfo,
  },
};
</script>

<style>
</style>